package com.autumn.platform.core.context.user.impl;

import java.util.HashSet;
import java.util.Set;

import com.autumn.platform.core.context.user.ISessionUser;

public class SessionUser implements ISessionUser {

    /**
     * 
     */
    private static final long serialVersionUID = -9042004600313214894L;

    /**
     * 会话ID
     */
    private String sessionId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 显示名称
     */
    private String showName;

    /**
     * 唯一身份类型，如身份证
     */
    private String identityType;

    /**
     * 唯一身份类型ID，如身份证号码
     */
    private String identityId;

    /**
     * 移动电话
     */
    private String mobile;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 机构号
     */
    private String orgId;

    private Set<String> permissionIds = new HashSet<String>();

    @Override
    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    @Override
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    @Override
    public String getIdentityType() {
        return identityType;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType;
    }

    @Override
    public String getIdentityId() {
        return identityId;
    }

    public void setIdentityId(String identityId) {
        this.identityId = identityId;
    }

    @Override
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Override
    public Set<String> getPermissionIds() {
        return permissionIds;
    }

    public void setPermissionIds(Set<String> permissionIds) {
        this.permissionIds = permissionIds;
    }
}
